package com.ikingtech.platform.service.tenant.exception;

import com.ikingtech.framework.sdk.context.exception.FrameworkExceptionInfo;
import lombok.RequiredArgsConstructor;

/**
 * @author tie yan
 */

@RequiredArgsConstructor
public enum TenantExceptionInfo implements FrameworkExceptionInfo {

    TENANT_NOT_FOUND("tenantNotFound"),

    DUPLICATE_TENANT_NAME("duplicateTenantName"),

    DUPLICATE_TENANT_CODE("duplicateTenantCode"),

    INVALID_START_END_TIME("invalidStartEndTime"),

    INVALID_START_DATE_WITH_NORMAL_STATUS("invalidStartDateWithNormalStatus"),

    INVALID_END_DATE_WITH_NORMAL_STATUS("invalidEndDateWithNormalStatus"),

    INVALID_END_DATE_WITH_FREEZE_STATUS("invalidEndDateWithFreezeStatus"),

    INVALID_STATUS_TO_UPDATE("invalidStatusToUpdate");

    private final String message;

    @Override
    public String message() {
        return this.message;
    }

    @Override
    public String moduleName() {
        return "iking-framework-system-post";
    }
}
